package com.example.forum.utils;

import java.util.UUID;

/**
 * @Author: wenjingyuan
 * @Date: 2023/09/19/21:07
 * @Description:
 */
public class UUIDUtil {
    /**
     * 生成一个36位的UUID
     * @return
     */
    public static String UUID_36(){
        return UUID.randomUUID().toString();
    }

    /**
     * 生成一个32位的UUID
     * @return
     */
    public static String UUID_32(){
        return UUID.randomUUID().toString().replace("-","");
    }
}
